package day0520;

public class Test11 {
    public static void main(String[] args) {
        int r=print(9);
        System.out.println(r);
    }
    //行
    public static int print(int row) {
        for (int i = 1; i <= row; i++) {
            for (int j = 0; j < row-i ; j++) {
                System.out.print("  ");
            }
            for (int j = 0; j <i ; j++) {
                System.out.print("+ ");
            }
            System.out.println();
        }
        return row*row;//返回所有字符的个数
    }
}
